//
//  HomeViewController.m
//  CargoSteward
//
//  Created by __ on 2021/4/6.
//

#import "HomeViewController.h"
#import "BaseAlertViewController.h"
//#import "WCPShipAddressViewController.h"
//#import "TestCollViewController.h"
@interface HomeViewController ()
@property (nonatomic,strong)WCPRootTabView *tableView;
@end

@implementation HomeViewController

- (void)viewDidLoad {
    [super viewDidLoad];
//    self.isShowLiftBack = NO;//每个根视图需要设置该属性为NO，否则会出现导航栏异常
//    self.isHidenNaviBar=YES;
    
    [self navAddleftIcon:nil leftStr:nil centerStr:@"首页" rightStr:@"客服"];
    self.navView.backgroundColor = [UIColor redColor];
    self.navLineV.backgroundColor = [UIColor blueColor];
    [self loadSubviews];
    
    UIButton *showBtn = [ViewConstructor CustButton];
    [self.view addSubview:showBtn];
    showBtn.backgroundColor = UIColor.greenColor;
    showBtn.frame = CGRectMake(200, 100, 50, 40);
    [showBtn addTarget:self action:@selector(alertShow) forControlEvents:UIControlEventTouchUpInside];
    [showBtn setTitle:@"tab" forState:UIControlStateNormal];
    
    UIButton *showcBtn = [ViewConstructor CustButton];
    [self.view addSubview:showcBtn];
    showcBtn.backgroundColor = UIColor.greenColor;
    showcBtn.frame = CGRectMake(200, 200, 50, 40);
    [showcBtn addTarget:self action:@selector(alertCShow) forControlEvents:UIControlEventTouchUpInside];
    [showcBtn setTitle:@"coll" forState:UIControlStateNormal];
}
-(void)alertShow
{
//    BaseAlertViewController *vc =[[BaseAlertViewController alloc]init];
//    [vc show];
    //显示不是全屏的缺省图
//    [self showDefaultMap:self.mainTwoview code:400];
    //显示全屏的缺省图
//    [self showDefaultMapCode:400 isNeedBack:YES];
//    WCPShipAddressViewController *vc = [[WCPShipAddressViewController alloc]initWidthType:1];
//    [self.navigationController pushViewController:vc animated:YES];
}
-(void)alertCShow
{
//    TestCollViewController *vc = [[TestCollViewController alloc]init];
//    [self.navigationController pushViewController:vc animated:YES];
}
-(void)loadSubviews{
//    [self.view addSubview:[self tableView]];
//    [self.view addSubview:[self collectionView]];
    
    UILabel *lab =  [self.view LabInitT:@"11" F:PFReFONT(12) TC:RGB51 alignment:NSTextAlignmentLeft];
    lab.frame = CGRectMake(100, 100, 200, 200);
    
    
}

@end
